The following is the result of debugging:
Failure: Circles are drawn too far apart from each other.
| Code Snippet(method name) | # of template questions instantiated | % of questions answered | Suspiciousness (1= low, 5= high) |
|---|---|---|---|
| inscribeFigure() | 7 | 57% | 3.5 |
| computeSideBySide() | 4 | 75% | 3.5 |
| computeConcentric() | 4 | 75% | 3.7 |
| calculateXCoordinate() | 6 | 83% | 2.6 |
| drawFigure() | 3 | 33% | 3.0 |
| Question | Answers | Average |
|---|---|---|
| Is it possible that the conditional clause has any typical faults (e.g., wrong boolean operator, wrong comparison, misplaced parentheses)? | 2;3;3;2 | 2.5 |
| Is it possible that the conditional clause causes the wrong code to be executed, or does not protect the code from a call to a null pointer, or from a call to the wrong type? | 1;1;3;2 | 1.8 |
| Is there perhaps something wrong with the parameters received by function inscribe (e.g., wrong order, missing parameter, wrong type of parameter, parameters that are not checked)? | ? | ? |
| Is there maybe something wrong with the way function shiftRight is being called (e.g., happens at the wrong place of the code, or function computeConcentric should be called instead)? | 3;3;3 | 3.0 |
| Is there perhaps something wrong with the parameters received by function shiftRight (e.g., wrong order, missing parameter, wrong type of parameter, parameters that are not checked)? | 5;4;5 | 4.7 |
| Does caller function inscribe receive an incorrect return value from the callee function shiftRight (e.g., callee function produces an incorrect value, callee returned the wrong variable, or the caller function is reading the wrong field from the return value)? | 1;1 | 1.0 |
Total Average: 2.6